/* 棱形雪粒样式 */
.snowflake {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    animation: ani 1s linear infinite;
}

.snowflake .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10px;
    height: 200px;
    background-color: white;
    border-radius: 5px;
    transform-origin: bottom;
    position: absolute;
    /* todo:控制雪花的大小 */
    transform: scale(0.4);
}

.snowflake .item:nth-child(2) {
    transform: rotate(60deg) scale(0.4);
    ;

}

.snowflake .item:nth-child(3) {
    transform: rotate(120deg) scale(0.4);
}

.snowflake .item:nth-child(4) {
    transform: rotate(180deg) scale(0.4);
}

.snowflake .item:nth-child(5) {
    transform: rotate(240deg) scale(0.4);
}

.snowflake .item:nth-child(6) {
    transform: rotate(300deg) scale(0.4);
}

.snowflake .item span:nth-child(1) {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
}

.snowflake .item span:nth-child(2),
.snowflake .item span:nth-child(3),
.snowflake .item span:nth-child(4),
.snowflake .item span:nth-child(5) {
    width: var(--slide-len);
    height: var(--slide-len);
    border: 10px solid white;
    border-style: none solid solid none;
    border-radius: 5px;
    transform: rotate(45deg);
}

.snowflake .item span:nth-child(2) {
    --slide-len: 40px;
}

.snowflake .item span:nth-child(3) {
    --slide-len: 30px;
}

.snowflake .item span:nth-child(4) {
    --slide-len: 20px;
}

.snowflake .item span:nth-child(5) {
    --slide-len: 10px;
    margin-top: 26px;
}

@keyframes ani {
    to {
        transform: rotate(360deg);
    }
}